package com.weixing.mall.redis;

/**
 * @ClassName CacheKeyConst
 * @Description
 * @Author Small
 * @Date 2020/4/8 10:39
 * @Version 1.0
 **/
public class RedisKeyConst {
    /*
     * cms模块redis相关的key
     */


    /**
     * 活动商品库存
     */
    public static final String ACT_ITEM_STOCK = "ACT_ITEM_STOCK::{}::{}";

    public static final String ACT_ITEM_STOCK_PRE = "ACT_ITEM_STOCK::{}::*";

    public static final String ACT_ITEM_DIVIDE_STOCK_FMT = "ACT_ITEM_DIVIDE_STOCK::{}::{}";
    public static final String ACT_ITEM_DIVIDE_STOCK_PRE = "ACT_ITEM_DIVIDE_STOCK::";

    public static final String ACT_ITEM_DIVIDE_STOCK_LOCKKEY_PRE = "ACT_ITEM_DIVIDE_STOCK_LOCKKEY::";

    /**
     * 库存为0，下架通知
     */
    public static final String TOPIC_ACT_ITEM_NO_STOCK = "ACT_ITEM_NO_STOCK";


    public static final String TOPIC_ACT_ITEM_DIVIDE_STOCK = "act_item_divide_stock";


    /**
     * 订单支付到期时间
     */
    public static final String ORDER_PAY_END_TIME_EX = "ORDER_PAY_END_TIME_EX::{}::{}";
    public static final String ORDER_PAY_END_TIME_EX_PRE = "ORDER_PAY_END_TIME_EX::";


    /**
     * 订单支付倒计时队列
     */
    public static final String QUEUE_ORDER_PAY_END = "QUEUE_ORDER_PAY_END";
    public static final String QUEUE_ORDER_DIV_STOCK = "QUEUE_ORDER_DIV_STOCK";

    /**
     * 代理到期提醒队列
     */
    public static final String AGENT_EXPIRE = "AGENT_EXPIRE";

}
